import { get, post } from "./request";

export default {
  //登录
  loginApi: parmas => post("/bk/login", parmas),
  //注册
  registerApi: parmas => post("/bk/addFrontUser", parmas),
  //找回密码
  findPwd: parmas => post("/front/userFindPasswd", parmas),
  //获取官网角色列表
  RoleFrontList: parmas => get("/bk/listRoleForAddUser", parmas),
  // 会议论坛 - 类型列表
  fetchListForumTypeAll: parmas => get(`/front/listForumTypeAll`, parmas),
  // 会议论坛 - 列表
  fetchListForum: parmas => get(`/front/listForum`, parmas),
  // 会议论坛 - 详情
  fetchForumInfo: parmas => get(`/front/getForumInfo`, parmas),

  // 专业智库 - 类型列表
  fetchListThinkTankTypeAll: parmas =>
    get(`/front/listThinkTankTypeAll`, parmas),
  // 专业智库 - 列表
  fetchListThinkTank: parmas => get(`/front/listThinkTank`, parmas),
  // 专业智库 - 详情
  fetchThinkTankInfo: parmas => get(`/front/getThinkTankInfo`, parmas),

  // 决策管理 - 列表
  fetchListDecision: parmas => get(`/front/listDecision`, parmas),
  // 决策调研评论 - 列表
  fetchListDecisionComment: parmas => get(`/front/listDecisionComment`, parmas),
  // 新增决策调研评论
  addDecisionComment: parmas => post(`/front/addDecisionComment`, parmas),
  // 决策管理 - 详情
  fetchDecisionInfo: parmas => get(`/front/getDecisionInfo`, parmas),

  // 专题库 - 列表
  fetchListCourse: parmas => get(`/front/listCourse`, parmas),
  // 专题库 - 详情
  fetchCourseInfo: parmas => get(`/front/getCourseInfo`, parmas),
  // 音视频 - 列表
  fetchListMedia: parmas => get(`/front/listMedia`, parmas),
  // 音视频 - 详情
  fetchMediaInfo: parmas => get(`/front/getMediaInfo`, parmas),
  // 资讯 - 类型列表
  fetchListHotNewsTypeAll: parmas => get(`/front/listHotNewsTypeAll`, parmas),
  // 资讯 - 详情
  fetchHotNewsInfo: parmas => get(`/front/getHotNewsInfo`, parmas),
  // 资讯 - 列表
  fetchListHotNews: parmas => get(`/front/listHotNews`, parmas),
  // 专家 - 列表
  fetchListProfessor: parmas => get(`/front/listProfessor`, parmas),
  // 专家 - 详情
  fetchProfessorInfo: parmas => get(`/front/getProfessorInfo`, parmas),
  // 联盟库 - 列表
  // fetchLisResult: parmas => get(`/ts/front/lisResult`, parmas),
  // 智库成果 - 列表
  fetchListTtResult: parmas => get(`/front/listTtResult`, parmas),
  listResultApi: parmas => get(`/front/listTtResult`, parmas),
  // 智库成果 - 类型列表
  fetchListResultTypeAll: parmas => get(`/front/listTtResultTypeAll`, parmas),
  // 智库成果 - 详情
  fetchResultInfo: parmas => get(`/front/getTtResultInfo`, parmas),
  //通知公告
  listAdviceApi: parmas => get("/front/listAdvice", parmas),
  //通知公告详情
  fetchAdviceInfo: parmas => get("/front/getAdviceInfo", parmas),
  //课程管理
  listCourseApi: parmas => get("/front/listCourse", parmas),
  //文件下载
  listFileApi: parmas => get("/front/listFile", parmas),
  //文件详情
  fetchFileInfo: parmas => get("/front/getFileInfo", parmas),
  //要闻动态
  listFocusNewsApi: parmas => get("/front/listFocusNews", parmas),
  //要闻动态类型
  listFocusNewsTypeAll: parmas => get("/front/listFocusNewsTypeAll", parmas),
  //要闻详情
  fetchFocusNewsInfo: parmas => get("/front/getFocusNewsInfo", parmas),
  //热点资讯
  listHotNewsApi: parmas => get("/front/listHotNews", parmas),
  //会议论坛
  listForumApi: parmas => get("/front/listForum", parmas),
  //决策调研
  listDecisionApi: parmas => get("/front/listDecision", parmas),
  //学者观点类型
  listViewpointTypeApi: parmas => get("front/listViewpointTypeAll", parmas),
  //学者观点
  listViewpointApi: parmas => get("/front/listViewpoint", parmas),
  //学者观点详情
  fetchViewpointInfo: parmas => get("/front/getViewpointInfo", parmas),
  //广告
  listAdverApi: parmas => get("/front/listAdver", parmas),
  //轮播图
  getSwiperApi: parmas => get("/front/listHotNewsSlide", parmas),
  //联盟
  listAlliance: parmas => get("/front/getAllianceInfo", parmas),
  //决策专刊
  listSpecial: parmas => get("/front/listSpecial", parmas),
  //分组版专刊
  listSpecialIG: parmas => get("front/listSpecialG", parmas),
  //专刊所有类型
  listSpecialTypes: parmas => get("front/listSpecialTypeAll", parmas),
  //父类型
  listSpecialFatherTypes: parmas =>
    get("front/listSpecialTypeFatherAll", parmas),
  //专刊详情
  fetchSpecialInfo: parmas => get("/front/getSpecialInfo", parmas),
  //专家
  listProfessor: parmas => get("/front/listProfessor", parmas),
  //视频
  listMedia: parmas => get("/front/listMedia", parmas),
  //智库名录
  listOrg: parmas => get("/front/listOrg", parmas),

  // 联盟成员列表
  listAllianceMember: parmas => get("/front/listAllianceMember", parmas),

  //智库活动列表
  listOrgApi: parmas => get("front/listAllianceActivity", parmas),
  //智库活动详情
  fetchOrgInfo: parmas => get("/front/getAllianceActivityInfo", parmas),
  //动态
  listOrgDynamic: parmas => get("/front/listOrgDynamic", parmas),
  listOrgDynamicApi: parmas => get("/front/listOrgDynamic", parmas),
  fetchOrgDynamicInfo: parmas => get("/front/getOrgDynamicInfo", parmas),
  //活动详情
  // fetchDynamicInfo: parmas => get('/ts/front/getOrgDynamicInfo', parmas),
  //单位机构列表
  listOrgJg: parmas => get("/front/listOrgJg", parmas),
  fetchOrgJgInfo: parmas => get("/front/getOrgJgInfo", parmas),
  //领导列表
  listOrgLeader: parmas => get("/front/listOrgLeader", parmas),
  fetchOrgLeaderInfo: parmas => get("/front/getOrgLeaderInfo", parmas),
  //研究项目列表
  listOrgProject: parmas => get("/front/listOrgProject", parmas),
  fetchOrgProjectInfo: parmas => get("/front/getOrgProjectInfo", parmas),
  //研究项目类型列表
  listOrgProjectTypeAll: parmas => get("/front/listOrgProjectTypeAll", parmas),
  //出版物列表
  listOrgPublish: parmas => get("/front/listOrgPublish", parmas),
  fetchOrgPublishInfo: parmas => get("/front/getOrgPublishInfo", parmas),
  //出版物类型列表
  listOrgPublishTypeAll: parmas => get("/front/listOrgPublishTypeAll", parmas),
  //研究成果列表
  listOrgResult: parmas => get("/front/listOrgResult", parmas),
  fetchOrgResultInfo: parmas => get("/front/getOrgResultInfo", parmas),
  //研究成果类型列表
  listOrgResultTypeAll: parmas => get("/front/listOrgResultTypeAll", parmas),
  //合作伙伴
  listPaterner: parmas => get("/front/listPaterner", parmas),
  //友情练级类型
  listPaternerTypeAll: parmas => get("front/listPaternerTypeAll", parmas),
  // uploadFile
  uploadFile: (parmas, { headers, data }) =>
    post("/front/uploadFile", parmas, { headers, data }),
  //全局检索
  listArticleApi: parmas => get("front/article", parmas),
  //检索详情
  fetchArticleInfo: parmas => post("front/getDoc", parmas),
  //总浏览量
  fetchSystemInfo: parmas => get("front/getSystemInfo", parmas),
  //问卷列表
  listQaApi: parmas => get("front/listQuestionnaire", parmas),
  //问卷详情
  fetchQaInfo: parmas => get("front/getQuestionnaireInfo", parmas),
  //智库评价类型
  listEvaluationTypeApi: parmas => get("front/listEvaluationTypeAll", parmas),
  //智库评价列表
  listEvaluationApi: parmas => get("front/listEvaluation", parmas),
  //智库评价详情
  fetchEvaluationInfo: parmas => get("front/getEvaluation", parmas),
  //专题广告类型
  getThemeAdTyps: () => get("front/getThemeAdTypes"),
  //专题广告
  getThemeAdsByType: parmas => get("front/getThemeAdsByType", parmas),
  getThemeAdById: params => get("front/getThemeAdById", params),
  getAdTypeByParentId: params => get("front/getAdTypeByParentId", params),
  getAdTypeById: params => get("/front/getAdTypeById", params)
};
